#ifndef T_BEND_YT_PARA_H
#define T_BEND_YT_PARA_H

#include "t_core.h"
////#include "nam.h"

//[Backend]
class T_HttpAccessBackend_YoutubeParallelPlayback : public T_HttpAccessBackend
{
    Q_OBJECT
public:
    explicit T_HttpAccessBackend_YoutubeParallelPlayback(T_NetworkAccessManager * manager)
        : T_HttpAccessBackend(manager)
    {  }
    virtual ~T_HttpAccessBackend_YoutubeParallelPlayback()
    {  }
    virtual T_HttpAccessReply *createHttpReply();
    static bool canHandle(T_NetworkAccessManager * manager,
                          QNetworkAccessManager::Operation op,
                          const QNetworkRequest & request,
                          ////QNetworkRequest request,
                          QIODevice * outgoingData);
};

class T_NetworkAccessBackendFactory_YoutubeParallelPlayback : public T_NetworkAccessBackendFactory
{
    Q_OBJECT
public:
    T_NetworkAccessBackendFactory_YoutubeParallelPlayback
            (QObject * parent = 0) : T_NetworkAccessBackendFactory(parent)
    {
    }
    virtual QObject *create(T_NetworkAccessManager * manager,
                            QNetworkAccessManager::Operation op,
                            const QNetworkRequest & request,
                            QIODevice * outgoingData) const;
};

class T_NetworkAccessManager_YoutubeParallelPlayback : public T_NetworkAccessManager
{
    Q_OBJECT
public:
    T_NetworkAccessManager_YoutubeParallelPlayback(QObject *parent = 0);
};

#endif
